package com.hc.bean;

import com.hc.radius.service.Order;
import com.hc.util.Util;


public class RoleBean {

	/**
	 */
	private String number;
	
	private String address;
	/*
	 */
	private String BroadbandSize; //
	
	private String vlanId1;
	
	private String vlanId2;
	
	private String company;
	
	private String intranetIp;
	
	private String externalIp;
	private Order order;
	public String getIntranetIp() {
		return intranetIp;
	}
	
	public String getExternalIp() {
		return externalIp;
	}
	
	 
	public void setIntranetIp(String intranetIp) {
		if (intranetIp == null || "".equals(intranetIp)) {
			return;
		}
		this.intranetIp = Util.parseIpFromInt(Long.parseLong(intranetIp));
	}

	public void setExternalIp(String externalIp) {
		if (externalIp == null || "".equals(externalIp)) {
			return;
		}
		this.externalIp = Util.parseIpFromInt(Long.parseLong(externalIp));
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}



	public RoleBean() {
	}
	
	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}


	public String getVlanId1() {
		return vlanId1;
	}




	public void setVlanId1(String vlanId1) {
		this.vlanId1 = vlanId1;
	}




	public String getVlanId2() {
		return vlanId2;
	}




	public void setVlanId2(String vlanId2) {
		this.vlanId2 = vlanId2;
	}


	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	 
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBroadbandSize() {
		return order.getBroadbandSize();
	}

//	public void setBroadbandSize(String broadbandSize) {
//		BroadbandSize = broadbandSize;
//	}

	@Override
	public String toString() {
		return "RoleBean [number=" + number + ", address=" + address
				+ ", BroadbandSize=" + BroadbandSize + ", vlanId1=" + vlanId1
				+ ", vlanId2=" + vlanId2 + ", company=" + company
				+ ", intranetIp=" + intranetIp + ", externalIp=" + externalIp
				+ ", order=" + order + "]";
	}

	 

 


	
	
}
